<?php

/**
 * @author minhhai
 * @copyright 2013
 */
?>

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		
			
        
        <?php $this->load->helper('url');?>
        
  	<!-- Css-->	
		<link href="<?php echo base_url();?>css/lms-application_bk.css" rel="stylesheet" type="text/css"/>
		<link href="<?php echo base_url();?>css/lms-course_bk.css" rel="stylesheet" type="text/css"/>
		<link href="<?php echo base_url();?>css/footer_bk.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url();?>public/css/style.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url();?>public/css/styles_course.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url();?>public/css/style-disc.css" rel="stylesheet" type="text/css"/>		
	<!-- JS -->	
		<script type="text/javascript" src="<?php echo base_url();?>js/lms-main_vendor.js" charset="utf-8"></script>
        
    <!-- Load phan title-->
    <?php $this->load->view('commons/title_head');?>
    <!--Het phan title-->	
</head>

<!--Super Calculator-->
<?php $this->load->view('course_view/super_calculator');?>
<!--end Super Calculator-->



<body class="courseware None">
<!-- THAY DOI header -->
    <?php $this->load->view('discussion_view/discussion_header');?>

	<section class="content-wrapper">

       <!--Menu top-->
            <?php $this->load->view('discussion_view/disc_menu_top'); ?>
       <!--End menu top-->
       
		<section class="container">
			<div class="course-wrapper">
            
            <!-- Menu Left -->
			<?php $this->load->view('discussion_view/discussion_left_menu_view');?>
            <!--End MenuLeft-->

                
            <!--PHAN NOI DUNG-->
            <!--Khung noi dung-->
                <div id = 'course_wrapper'>  
                    
                    <!--PHAN THAO LUAN-->
                        <!--Khung thao luan-->
                        <div id = 'disc_wrapper'>    
    
                        <div class='ques_ans_content'>
    
    
 <!--Thong tin ve nguoi hoi va cau hoi-->        
        <div id='disc_questioner_inf'>
            <div id='disc_avatar_questioner'>
            </div>
            <div id='disc_name_questioner'>
                <a href="#"> <?php echo $ques['disc_ques_name'];?> </a>
            </div>
        </div>
        
        <div id='disc_ques_inf'>
            <div id='disc_title_ques'>
                <?php echo $ques['disc_ques_title']; ?>
            </div>
            <div class='disc_ques_inf'>
                Đăng ngày › <?php echo $ques['disc_ques_time']; ?>
            </div>
            <div id='disc_content_ques'>
                <?php $str = $ques['disc_ques_content'];
                      $str = strip_tags($str);
                      echo $str;
                ?>
            </div>
            
           
            <!--Nut chon tra loi cau hoi-->
            <div id='disc_bt_ans'>
                <form  method="POST" name="frm_bt_ans" action = "
                    <?php
                        echo base_url()."index.php/discussion_controller/ans_ques/".$ques['disc_ques_id'];
                    ?>">
                    <input type="submit" class="bt_header_inside" name="ok" value="Trả lời câu hỏi" />
                </form>
            </div>
            
        </div>   
    </div>
	
    <!--Phan tieu de nam giua cau hoi va cau tra loi-->
    <!--Truong hop da co cau tra loi-->
    <?php if (sizeof($id) > 0){?>
    <div id="disc_show_quantity_of_answers"> <p>Các câu trả lời (<?php echo sizeof($id);?>) </p></div>

    <!--Phan the hien cac cau tra loi-->
	<div class='disc_ques_or_ans_content'>
        <?php  for($i = 0; $i < sizeof($id); $i++){ ?>            
            <div class='disc_avatar_answerer'>
            </div>
            <div class='disc_all_about_ans'>
                <div class='disc_inf_answerer'>
                    <div class='disc_name_answerer'>
                        <a href='#'> <?php echo $name[$i]; ?> </a>
                    </div>
                    <div class='disc_time_ans'>       			
                        <?php echo $time[$i]; ?>
                    </div>
                </div>
                <div class='disc_content_ans'>                         
                    <?php echo $content[$i]; ?>
                </div>
            </div>
            <div class='disc_space_between_answers'>
            </div>
        <?php } ?>
    
    
    <!--Truong hop chua co cau tra loi nao-->
    <?php }
        
    ?>
    </div>  
                            
    
    
    
    

                        </div>
                        </div>
                    <!--HET PHAN THAO LUAN-->
                    
                    
                    
                    
                </div>
            <!--HET PHAN NOI DUNG-->
			
            
            
			</div>
		</section>
	</section>

   	<!--Footer-->
    <?php $this->load->view('commons/footer_all');?>
</body></html>